package nc.bs.pub.formularparse;

import java.util.Stack;

import nc.vo.pub.formulaset.core.ParseException;
import nc.vo.pub.formulaset.function.PostfixMathCommand;




public class ToStringFunc extends PostfixMathCommand {

	/**
	 * 
	 */
	public ToStringFunc() {
		numberOfParameters = 1;
	}
	
	
	/* (non-Javadoc)
	 * @see org.nfunk.jep.function.PostfixMathCommandI#run(java.util.Stack)
	 */
	public void run(Stack st) throws ParseException {
		checkStack(st);
		
		Object v1 = st.pop();;
	    st.push(v1==null?"":v1.toString());
	}
}
